package cn.tedu.ivos.base.exception;

import cn.tedu.ivos.base.response.StatusCode;

/* 自定义的业务层异常类 */
public class ServiceException extends RuntimeException{
    private StatusCode statusCode;
    public ServiceException(StatusCode statusCode) {
        this.statusCode = statusCode;
    }

    public StatusCode getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(StatusCode statusCode) {
        this.statusCode = statusCode;
    }
}
